/**
 * Created by Administrator on 2016/8/8.
 */

    $(function () {
        console.log("hah");
        //设置左右边的小球逐渐变大
        $("#left").animate({width:"80px",height:"80px", "border-radius":"40px",top:"210px"},500);
        $("#right").animate({width:"80px",height:"80px","border-radius":"40px",top:"210px"},500);
        //设置左右边的小球移动
        $("#left").animate({left:"50%"},1000, function () {
            //设置线逐渐消失
            $("#line").animate({width:"0px"},1000);
        });

        $("#right").animate({left:"50%"},1000, function () {
            //设置线逐渐消失
            $("#line").animate({width:"0px"},1000, function () {
                //文字渐入
                $("span>s:first-child").show(800, function () {
                   $(this).next().show(800,arguments.callee);
                });

                //文字消失
                $("span>s:last-child").hide(800, function () {
                    //$(this).prev().hide(800,arguments.callee);
                });
            });
        });





    });


